<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fns.tld" prefix="fns" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <jsp:include page="/resources/inc/head.jsp"/>
    <link href="${basePath}/resources/zheng-admin/plugins/zTree_v3/css/demo.css" rel="stylesheet"/>
    <link href="${basePath}/resources/zheng-admin/plugins/zTree_v3/css/metroStyle/metroStyle.css" rel="stylesheet"/>
</head>
<body>
<form class="layui-form layui-form-pane" id="_form">
    <input type="hidden" value="${paidLeave.id}" name="id"/>
    <input type="hidden" value="${username}" name="username"/>
    <input type="hidden" value="${year}" name="year"/>
    <div class="layui-form-item">
        <label class="layui-form-label">年假天数</label>
        <div class="layui-input-block">
            <input type="text" name="days" value="${paidLeave.days}" lay-verify="number"
                   autocomplete="off" placeholder="请输入年假天数"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">已使用天数</label>
        <div class="layui-input-block">
            <input type="text" value="${usedDays}" readonly="readonly"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block" style="float: right">
            <button class="layui-btn" lay-submit="" lay-filter="sub">立即提交</button>
        </div>
    </div>
</form>
<jsp:include page="/resources/inc/pageFooter.jsp"/>
<script>
    $(function () {
        //提交方法
        FormCommon.initForm({
            url: '${basePath}/oa/hr/paidLeave/update'
        });
    });

</script>
</body>
</html>
